#ifndef COMMON_H_
#define COMMON_H_
#define DEBUG

#include <android/log.h>
#include "types.h"
#include <string.h>


#ifdef DEBUG
#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "androidplus", __VA_ARGS__))
#else
#define LOGI(...)
#endif


#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, "androidplus", __VA_ARGS__))
#define LOGF(...) ((void)__android_log_print(ANDROID_LOG_FATAL, "androidplus", __VA_ARGS__))


#define STATUS_OK  0
#define STATUS_ERROR 1

#define startnamespace(x)  namespace x{
#define endnamespace(x)      }
#define usenamespace(x)      using namespace x;

#define region(x)
#define endregion(x)
#endif
